import request from "@/api/request";

// 获取新闻数据
export function getIndexApi() {
    return request({
        url: 'edu/getIndex',
        method: 'get'
    })
}

// 获取轮播图数据
export function getBannerApi() {
    return request({
        url: 'edu/getBanner',
        method: 'get'
    })
}

// 获取课程数据
export function getLessonApi() {
    return request({
        url: 'edu/getLesson',
        method: 'get'
    })

}

    // 会员注册
export function registerApi(data:object) {
    return request({
        url: 'edu/register',
        method: 'post',
        data
    })
}
// 会员登录
export function loginApi(data: object) {
    return request({
        url: 'edu/login',
        method: 'post',
        data
    })
}